using System;
using Framework.Utils;
using Framework.Utils.SingletonTemplate;

namespace Framework.Save
{
    public class SaveManager : SingletonBase<SaveControl<SaveData> , SaveManager>
    {

        protected override void OnInit()
        {
            _instance.Config.RootPath = FileHelper.UnityRootPath + "/system";
#if UNITY_EDITOR
            _instance.Config.SetSerializer(new SaveSerializerJson());
#else
            _instance.Config.SetSerializer(new SaveSerializerJsonEncrypt());
#endif
        }
    }
    
}